﻿#ifndef _DEVICE_VO_H_
#define _DEVICE_VO_H_

#include "oatpp/core/Types.hpp"
#include "oatpp/core/macro/codegen.hpp"

#include OATPP_CODEGEN_BEGIN(DTO)

class DeviceVo : public oatpp::DTO {
	DTO_INIT(DeviceVo, DTO)
	DTO_FIELD(String, id, "id");
	DTO_FIELD(String, name, "name");
	DTO_FIELD(String, rtspUrl, "rtspUrl");
	DTO_FIELD(String, username, "username");
	DTO_FIELD(String, password, "password");
	DTO_FIELD(String, manufacture, "manufacture");
	DTO_FIELD(Int32, enabled, "enabled");
	DTO_FIELD(Int32, frameGap, "frameGap");
	DTO_FIELD(String, startTime, "startTime");
	DTO_FIELD(String, endTime, "endTime");
	DTO_FIELD(String, params, "params");
	DTO_FIELD(Int32, silence, "silence");
	DTO_FIELD(String, createTime, "createTime");
	DTO_FIELD(String, updateTime, "updateTime");
	DTO_FIELD(String, detectTime, "detectTime");
	DTO_FIELD(String, lastImage, "lastImage");
	DTO_FIELD(String, imageUrl, "imageUrl");
};

#include OATPP_CODEGEN_END(DTO)

#endif